package com.vhall.component.entity.pendant;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author guoxin.wang
 * @date 2021/10/29 10:45
 **/
@Data
@TableName("pendant")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "PendantEntity对象", description = "挂件表")
public class PendantEntity implements Serializable {

    private static final long serialVersionUID = 7055345000075269372L;

    @TableId(value = "id", type = IdType.AUTO)
    @JsonProperty("id")
    private Integer id;

    @ApiModelProperty(value = "商家id")
    @JsonProperty("account_id")
    @TableField(value = "account_id")
    private Integer accountId;

    @ApiModelProperty(value = "挂件名称")
    @JsonProperty("name")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "挂件图片")
    @JsonProperty("pic")
    @TableField("pic")
    private String pic;

    @ApiModelProperty(value = "挂件图标")
    @JsonProperty("icon")
    @TableField("icon")
    private String icon;

    @ApiModelProperty(value = "挂件链接")
    @JsonProperty("pendant_url")
    @TableField("pendant_url")
    private String pendantUrl;

    @ApiModelProperty(value = "微信挂件链接")
    @JsonProperty("pendant_weixin_url")
    @TableField("pendant_weixin_url")
    private String pendantWeixinUrl;

    @ApiModelProperty(value = "类型;1=推屏挂件 2=固定挂件")
    @JsonProperty("type")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "是否是默认固定挂件;0=否 1=是")
    @JsonProperty("is_default")
    @TableField("is_default")
    private Integer isDefault;

    @ApiModelProperty(value = "状态;0=删除 1=正常")
    @JsonProperty("status")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "创建时间")
    @JsonProperty("created_at")
    @TableField("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty(value = "更新时间")
    @JsonProperty("updated_at")
    @TableField("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty(value = "删除时间")
    @JsonProperty("deleted_at")
    @TableField("deleted_at")
    private LocalDateTime deletedAt;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_code")
    private String orgCode;

    @ApiModelProperty(value = "直播来源,从创建人身上获取")
    @TableField("org_name")
    private String orgName;

}
